package com.gopay.remote.fundcps.model;

import com.gopay.common.cipher.utils.SensitiveInfoUtils;
import com.gopay.common.domain.BaseEntity;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 * 个人活期宝开户信息
 * @author yu_liu6@hnair.com
 * @date 2017-12-11 13:42:19
 */
public class FundpGopayOpenAcct extends BaseEntity {
    private static final long serialVersionUID = -8718373371925349374L;
    private Long keyId;

    private String custId;

    private String merchantId;

    private String agreementSignNo;

    private String acctId;

    private String openStatus;

    private String appSheetSerialNo;

    private Integer fundCustNo;

    private Long moneyAccount;

    private String taAccountId;

    private String transactionAccountId;

    private String custFullName;

    private String familyName;

    private String firstName;

    private String nickname;

    private String certType;

    private String certNo;

    private String certValidate;

    private String officeTelNo;

    private String telNo;

    private String mobileNo;

    private String email;

    private String minorFlag;

    private String minorId;

    private String postcode;

    private String address;

    private String fax;

    private String country;

    private String sex;

    private String birthday;

    private String investorType;

    private String educationLevel;

    private String vocationCode;

    private String annualIncome;

    private String szSecuritiesAccountId;

    private String shSecuritiesAccountId;

    private String custManagerId;

    private String referral;

    private String referralMobile;

    private String referralOrg;

    private String referralId;

    private String referralProvinceName;

    private String referralCityName;

    private String deliverWay;

    private String deliverType;

    private String channelId;

    private String depositProv;

    private String depositCity;

    private String depositName;

    private String depositAcctName;

    private String isMainBack;

    private String isMainPay;

    private String authenticateFlag;

    private String tradingMethod;

    private String loginPassword;

    private String transPassword;

    private String operOrg;

    private String taNo;

    private String custRisk;

    private String channelName;

    private String homeTelNo;

    private String transactorCertType;

    private String transactorCertNo;

    private String transactorName;

    private String transactorValidate;

    private String transactorCertRefer;

    private String transactorTel;

    private String bankName;

    private String checkInfo;

    private String source;

    private String sourceKey;

    private String tradeCause;

    private String actualCtrlName;

    private String beneficiary;

    private String contractNo;

    private String acountType;

    private String bankBranchName;

    private String otherBankName;

    private String mobileAuthSign;

    private String dxfromFlag;

    private String adsource;

    private String appSheetSerialnoEx;

    private Date createdTs;

    private Date lastUpdTs;

    private String failureReason;

    public Long getKeyId() {
        return keyId;
    }

    public void setKeyId(Long keyId) {
        this.keyId = keyId;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId == null ? null : custId.trim();
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId == null ? null : merchantId.trim();
    }

    public String getAgreementSignNo() {
        return agreementSignNo;
    }

    public void setAgreementSignNo(String agreementSignNo) {
        this.agreementSignNo = agreementSignNo == null ? null : agreementSignNo.trim();
    }

    public String getAcctId() {
        return acctId;
    }

    public void setAcctId(String acctId) {
        this.acctId = acctId == null ? null : acctId.trim();
    }

    public String getOpenStatus() {
        return openStatus;
    }

    public void setOpenStatus(String openStatus) {
        this.openStatus = openStatus == null ? null : openStatus.trim();
    }

    public String getAppSheetSerialNo() {
        return appSheetSerialNo;
    }

    public void setAppSheetSerialNo(String appSheetSerialNo) {
        this.appSheetSerialNo = appSheetSerialNo == null ? null : appSheetSerialNo.trim();
    }

    public Integer getFundCustNo() {
        return fundCustNo;
    }

    public void setFundCustNo(Integer fundCustNo) {
        this.fundCustNo = fundCustNo;
    }

    public Long getMoneyAccount() {
        return moneyAccount;
    }

    public void setMoneyAccount(Long moneyAccount) {
        this.moneyAccount = moneyAccount;
    }

    public String getTaAccountId() {
        return taAccountId;
    }

    public void setTaAccountId(String taAccountId) {
        this.taAccountId = taAccountId == null ? null : taAccountId.trim();
    }

    public String getTransactionAccountId() {
        return transactionAccountId;
    }

    public void setTransactionAccountId(String transactionAccountId) {
        this.transactionAccountId = transactionAccountId == null ? null : transactionAccountId.trim();
    }

    public String getCustFullName() {
        return custFullName;
    }

    public void setCustFullName(String custFullName) {
        this.custFullName = custFullName == null ? null : custFullName.trim();
    }

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName == null ? null : familyName.trim();
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName == null ? null : firstName.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType == null ? null : certType.trim();
    }

    public String getCertNo() {
        if(StringUtils.isBlank(certNo)){
            return certNo;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(certNo);
    }

    public void setCertNo(String certNo) {
        if(StringUtils.isBlank(certNo)){
            this.certNo = certNo;
        } else {
            this.certNo = SensitiveInfoUtils.smartEncryptWithCheck(certNo.trim());
        }
    }

    public String getCertValidate() {
        return certValidate;
    }

    public void setCertValidate(String certValidate) {
        this.certValidate = certValidate == null ? null : certValidate.trim();
    }

    public String getOfficeTelNo() {
        return officeTelNo;
    }

    public void setOfficeTelNo(String officeTelNo) {
        this.officeTelNo = officeTelNo == null ? null : officeTelNo.trim();
    }

    public String getTelNo() {
        if(StringUtils.isBlank(telNo)){
            return telNo;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(telNo);
    }

    public void setTelNo(String telNo) {
        if(StringUtils.isBlank(telNo)){
            this.telNo = telNo;
        } else {
            this.telNo = SensitiveInfoUtils.smartEncryptWithCheck(telNo.trim());
        }
    }

    public String getMobileNo() {
        if(StringUtils.isBlank(mobileNo)){
            return mobileNo;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(mobileNo);
    }

    public void setMobileNo(String mobileNo) {
        if(StringUtils.isBlank(mobileNo)){
            this.mobileNo = mobileNo;
        } else {
            this.mobileNo = SensitiveInfoUtils.smartEncryptWithCheck(mobileNo.trim());
        }
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMinorFlag() {
        return minorFlag;
    }

    public void setMinorFlag(String minorFlag) {
        this.minorFlag = minorFlag == null ? null : minorFlag.trim();
    }

    public String getMinorId() {
        return minorId;
    }

    public void setMinorId(String minorId) {
        this.minorId = minorId == null ? null : minorId.trim();
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode == null ? null : postcode.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax == null ? null : fax.trim();
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country == null ? null : country.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public String getInvestorType() {
        return investorType;
    }

    public void setInvestorType(String investorType) {
        this.investorType = investorType == null ? null : investorType.trim();
    }

    public String getEducationLevel() {
        return educationLevel;
    }

    public void setEducationLevel(String educationLevel) {
        this.educationLevel = educationLevel == null ? null : educationLevel.trim();
    }

    public String getVocationCode() {
        return vocationCode;
    }

    public void setVocationCode(String vocationCode) {
        this.vocationCode = vocationCode == null ? null : vocationCode.trim();
    }

    public String getAnnualIncome() {
        return annualIncome;
    }

    public void setAnnualIncome(String annualIncome) {
        this.annualIncome = annualIncome == null ? null : annualIncome.trim();
    }

    public String getSzSecuritiesAccountId() {
        return szSecuritiesAccountId;
    }

    public void setSzSecuritiesAccountId(String szSecuritiesAccountId) {
        this.szSecuritiesAccountId = szSecuritiesAccountId == null ? null : szSecuritiesAccountId.trim();
    }

    public String getShSecuritiesAccountId() {
        return shSecuritiesAccountId;
    }

    public void setShSecuritiesAccountId(String shSecuritiesAccountId) {
        this.shSecuritiesAccountId = shSecuritiesAccountId == null ? null : shSecuritiesAccountId.trim();
    }

    public String getCustManagerId() {
        return custManagerId;
    }

    public void setCustManagerId(String custManagerId) {
        this.custManagerId = custManagerId == null ? null : custManagerId.trim();
    }

    public String getReferral() {
        return referral;
    }

    public void setReferral(String referral) {
        this.referral = referral == null ? null : referral.trim();
    }

    public String getReferralMobile() {
        if(StringUtils.isBlank(referralMobile)){
            return referralMobile;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(referralMobile);
    }

    public void setReferralMobile(String referralMobile) {
        if(StringUtils.isBlank(referralMobile)){
            this.referralMobile = referralMobile;
        } else {
            this.referralMobile = SensitiveInfoUtils.smartEncryptWithCheck(referralMobile.trim());
        }
    }

    public String getReferralOrg() {
        return referralOrg;
    }

    public void setReferralOrg(String referralOrg) {
        this.referralOrg = referralOrg == null ? null : referralOrg.trim();
    }

    public String getReferralId() {
        return referralId;
    }

    public void setReferralId(String referralId) {
        this.referralId = referralId == null ? null : referralId.trim();
    }

    public String getReferralProvinceName() {
        return referralProvinceName;
    }

    public void setReferralProvinceName(String referralProvinceName) {
        this.referralProvinceName = referralProvinceName == null ? null : referralProvinceName.trim();
    }

    public String getReferralCityName() {
        return referralCityName;
    }

    public void setReferralCityName(String referralCityName) {
        this.referralCityName = referralCityName == null ? null : referralCityName.trim();
    }

    public String getDeliverWay() {
        return deliverWay;
    }

    public void setDeliverWay(String deliverWay) {
        this.deliverWay = deliverWay == null ? null : deliverWay.trim();
    }

    public String getDeliverType() {
        return deliverType;
    }

    public void setDeliverType(String deliverType) {
        this.deliverType = deliverType == null ? null : deliverType.trim();
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId == null ? null : channelId.trim();
    }

    public String getDepositProv() {
        return depositProv;
    }

    public void setDepositProv(String depositProv) {
        this.depositProv = depositProv == null ? null : depositProv.trim();
    }

    public String getDepositCity() {
        return depositCity;
    }

    public void setDepositCity(String depositCity) {
        this.depositCity = depositCity == null ? null : depositCity.trim();
    }

    public String getDepositName() {
        return depositName;
    }

    public void setDepositName(String depositName) {
        this.depositName = depositName == null ? null : depositName.trim();
    }

    public String getDepositAcctName() {
        return depositAcctName;
    }

    public void setDepositAcctName(String depositAcctName) {
        this.depositAcctName = depositAcctName == null ? null : depositAcctName.trim();
    }

    public String getIsMainBack() {
        return isMainBack;
    }

    public void setIsMainBack(String isMainBack) {
        this.isMainBack = isMainBack == null ? null : isMainBack.trim();
    }

    public String getIsMainPay() {
        return isMainPay;
    }

    public void setIsMainPay(String isMainPay) {
        this.isMainPay = isMainPay == null ? null : isMainPay.trim();
    }

    public String getAuthenticateFlag() {
        return authenticateFlag;
    }

    public void setAuthenticateFlag(String authenticateFlag) {
        this.authenticateFlag = authenticateFlag == null ? null : authenticateFlag.trim();
    }

    public String getTradingMethod() {
        return tradingMethod;
    }

    public void setTradingMethod(String tradingMethod) {
        this.tradingMethod = tradingMethod == null ? null : tradingMethod.trim();
    }

    public String getLoginPassword() {
        if(StringUtils.isBlank(loginPassword)){
            return loginPassword;
        }
        return SensitiveInfoUtils.smartEncryptWithCheck(loginPassword);
    }

    public void setLoginPassword(String loginPassword) {
        if(StringUtils.isBlank(loginPassword)){
            this.loginPassword = loginPassword;
        } else {
            this.loginPassword = SensitiveInfoUtils.smartEncryptWithCheck(loginPassword.trim());
        }
    }

    public String getTransPassword() {
        if(StringUtils.isBlank(transPassword)){
            return transPassword;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(transPassword);
    }

    public void setTransPassword(String transPassword) {
        if(StringUtils.isBlank(transPassword)){
            this.transPassword = transPassword;
        } else {
            this.transPassword = SensitiveInfoUtils.smartEncryptWithCheck(transPassword.trim());
        }
    }

    public String getOperOrg() {
        return operOrg;
    }

    public void setOperOrg(String operOrg) {
        this.operOrg = operOrg == null ? null : operOrg.trim();
    }

    public String getTaNo() {
        return taNo;
    }

    public void setTaNo(String taNo) {
        this.taNo = taNo == null ? null : taNo.trim();
    }

    public String getCustRisk() {
        return custRisk;
    }

    public void setCustRisk(String custRisk) {
        this.custRisk = custRisk == null ? null : custRisk.trim();
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName == null ? null : channelName.trim();
    }

    public String getHomeTelNo() {
        return homeTelNo;
    }

    public void setHomeTelNo(String homeTelNo) {
        this.homeTelNo = homeTelNo == null ? null : homeTelNo.trim();
    }

    public String getTransactorCertType() {
        return transactorCertType;
    }

    public void setTransactorCertType(String transactorCertType) {
        this.transactorCertType = transactorCertType == null ? null : transactorCertType.trim();
    }

    public String getTransactorCertNo() {
        if(StringUtils.isBlank(transactorCertNo)){
            return transactorCertNo;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(transactorCertNo);
    }

    public void setTransactorCertNo(String transactorCertNo) {
        if(StringUtils.isBlank(transactorCertNo)){
            this.transactorCertNo = transactorCertNo;
        } else {
            this.transactorCertNo = SensitiveInfoUtils.smartEncryptWithCheck(transactorCertNo.trim());
        }
    }

    public String getTransactorName() {
        return transactorName;
    }

    public void setTransactorName(String transactorName) {
        this.transactorName = transactorName == null ? null : transactorName.trim();
    }

    public String getTransactorValidate() {
        return transactorValidate;
    }

    public void setTransactorValidate(String transactorValidate) {
        this.transactorValidate = transactorValidate == null ? null : transactorValidate.trim();
    }

    public String getTransactorCertRefer() {
        return transactorCertRefer;
    }

    public void setTransactorCertRefer(String transactorCertRefer) {
        this.transactorCertRefer = transactorCertRefer == null ? null : transactorCertRefer.trim();
    }

    public String getTransactorTel() {
        if(StringUtils.isBlank(transactorTel)){
            return transactorTel;
        }
        return SensitiveInfoUtils.smartDecryptWithCheck(transactorTel);
    }

    public void setTransactorTel(String transactorTel) {
        if(StringUtils.isBlank(transactorTel)){
            this.transactorTel = transactorTel;
        } else {
            this.transactorTel = SensitiveInfoUtils.smartEncryptWithCheck(transactorTel.trim());
        }
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName == null ? null : bankName.trim();
    }

    public String getCheckInfo() {
        return checkInfo;
    }

    public void setCheckInfo(String checkInfo) {
        this.checkInfo = checkInfo == null ? null : checkInfo.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getSourceKey() {
        return sourceKey;
    }

    public void setSourceKey(String sourceKey) {
        this.sourceKey = sourceKey == null ? null : sourceKey.trim();
    }

    public String getTradeCause() {
        return tradeCause;
    }

    public void setTradeCause(String tradeCause) {
        this.tradeCause = tradeCause == null ? null : tradeCause.trim();
    }

    public String getActualCtrlName() {
        return actualCtrlName;
    }

    public void setActualCtrlName(String actualCtrlName) {
        this.actualCtrlName = actualCtrlName == null ? null : actualCtrlName.trim();
    }

    public String getBeneficiary() {
        return beneficiary;
    }

    public void setBeneficiary(String beneficiary) {
        this.beneficiary = beneficiary == null ? null : beneficiary.trim();
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo == null ? null : contractNo.trim();
    }

    public String getAcountType() {
        return acountType;
    }

    public void setAcountType(String acountType) {
        this.acountType = acountType == null ? null : acountType.trim();
    }

    public String getBankBranchName() {
        return bankBranchName;
    }

    public void setBankBranchName(String bankBranchName) {
        this.bankBranchName = bankBranchName == null ? null : bankBranchName.trim();
    }

    public String getOtherBankName() {
        return otherBankName;
    }

    public void setOtherBankName(String otherBankName) {
        this.otherBankName = otherBankName == null ? null : otherBankName.trim();
    }

    public String getMobileAuthSign() {
        return mobileAuthSign;
    }

    public void setMobileAuthSign(String mobileAuthSign) {
        this.mobileAuthSign = mobileAuthSign == null ? null : mobileAuthSign.trim();
    }

    public String getDxfromFlag() {
        return dxfromFlag;
    }

    public void setDxfromFlag(String dxfromFlag) {
        this.dxfromFlag = dxfromFlag == null ? null : dxfromFlag.trim();
    }

    public String getAdsource() {
        return adsource;
    }

    public void setAdsource(String adsource) {
        this.adsource = adsource == null ? null : adsource.trim();
    }

    public String getAppSheetSerialnoEx() {
        return appSheetSerialnoEx;
    }

    public void setAppSheetSerialnoEx(String appSheetSerialnoEx) {
        this.appSheetSerialnoEx = appSheetSerialnoEx == null ? null : appSheetSerialnoEx.trim();
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getFailureReason() {
        return failureReason;
    }

    public void setFailureReason(String failureReason) {
        this.failureReason = failureReason == null ? null : failureReason.trim();
    }
}